.class Lcom/nemustech/regina/ElementLocator$1;
.super Ljava/lang/Object;
.source "ElementLocator.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFHolder$OnObjectShiftListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ElementLocator;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementLocator;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementLocator;)V
    .locals 0
    .parameter

    .prologue
    .line 245
    iput-object p1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onObjectShift(I)V
    .locals 5
    .parameter "newItemIndex"

    .prologue
    .line 250
    const-string v1, "ElementLocator"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "&&& onHeadModelChange "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 252
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v1}, Lcom/nemustech/regina/ElementLocator;->access$200(Lcom/nemustech/regina/ElementLocator;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceName()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 253
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementLocator;->showWorkspaceNameView(I)V

    .line 254
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-virtual {v1, p1}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 256
    .local v0, fWorkspace:Lcom/nemustech/regina/RGWorkspace;
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v1}, Lcom/nemustech/regina/ElementLocator;->access$300(Lcom/nemustech/regina/ElementLocator;)Ljava/lang/Runnable;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 257
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v1}, Lcom/nemustech/regina/ElementLocator;->access$400(Lcom/nemustech/regina/ElementLocator;)Landroid/os/Handler;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v2}, Lcom/nemustech/regina/ElementLocator;->access$300(Lcom/nemustech/regina/ElementLocator;)Ljava/lang/Runnable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 265
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    new-instance v2, Lcom/nemustech/regina/ElementLocator$1$1;

    invoke-direct {v2, p0, v0}, Lcom/nemustech/regina/ElementLocator$1$1;-><init>(Lcom/nemustech/regina/ElementLocator$1;Lcom/nemustech/regina/RGWorkspace;)V

    invoke-static {v1, v2}, Lcom/nemustech/regina/ElementLocator;->access$302(Lcom/nemustech/regina/ElementLocator;Ljava/lang/Runnable;)Ljava/lang/Runnable;

    .line 277
    iget-object v1, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v1}, Lcom/nemustech/regina/ElementLocator;->access$400(Lcom/nemustech/regina/ElementLocator;)Landroid/os/Handler;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/ElementLocator$1;->this$0:Lcom/nemustech/regina/ElementLocator;

    invoke-static {v2}, Lcom/nemustech/regina/ElementLocator;->access$300(Lcom/nemustech/regina/ElementLocator;)Ljava/lang/Runnable;

    move-result-object v2

    const-wide/16 v3, 0x3e8

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 278
    return-void
.end method
